package com.ktjy.service;

import com.ktjy.entity.Concert;
import com.ktjy.mapper.ConcertMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("concertService")
public class ConcertServiceImpl implements ConcertService{
    @Autowired
    ConcertMapper concertMapper;

    @Override
    public List<Concert> selectConcert(int pageSize, int pageBegin) {
        return concertMapper.selectConcert(pageSize,pageBegin);
    }

    @Override
    public int insertConcert(Concert concert) {
        return concertMapper.insertConcert(concert);
    }

    @Override
    public int updateConcert(Concert concert) {
        return concertMapper.updateConcert(concert);
    }

    @Override
    public int deleteConcert(int concertId) {
        return concertMapper.deleteConcert(concertId);
    }

    @Override
    public int count() {
        return concertMapper.count();
    }

    @Override
    public Concert selectConcertById(int concertId) {
        return concertMapper.selectConcertById(concertId);
    }
}
